package com.wdb.exchange.model;

import java.io.Serializable;
import java.util.Map;

import com.google.gson.Gson;

/**
 * 通用请求返回类型
 * 
 * @author linxu
 *
 */
public class RespModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6683900891897067613L;
	private int code;// RPC请求状态，0表示成功
	private String msg;
	private Map<String, Object> details;// 其他信息

	public Map<String, Object> getDetails() {
		return details;
	}

	public void setDetails(Map<String, Object> details) {
		this.details = details;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return new Gson().toJson(this);
	}
}
